//require.config({
//	paths: {
//		echarts: '../../plugins/echat/dist'
//	}
//});
//jQuery(document).ready(function() {
//
//});	


function echarts1(uniqueid) {
	
	//计划生产图实例数据格式
	var data=[
		{"product_name":'XX-1>天线',"begintime":"2017/10/18","endtime":"2017/11/28"},
		{"product_name":'XX-1>电源件',"begintime":"2017/10/15","endtime":"2017/11/20"},
		{"product_name":'XX-1>发动机',"begintime":"2017/10/13","endtime":"2017/11/10"},
		{"product_name":'XX-2>天线',"begintime":"2017/10/11","endtime":"2017/11/24"},
		{"product_name":'XX-2>电源件',"begintime":"2017/10/16","endtime":"2017/11/05"},
		{"product_name":'XX-2>发动机',"begintime":"2017/10/04","endtime":"2017/11/06"}
	];
	
	var begintime= $("#begintime").val();
	if(""==begintime){
		begintime="1900-01-01";
	}
	var endtime= $("#endtime").val();
	if(""==endtime){
		var d= new Date()
		var day=d.getDate()
		var month=d.getMonth() + 1
		var year=d.getFullYear()
		endtime=year+'-'+month+'-'+day;
	}
	$.ajax({
		url:host+"users/analysis/getPlans/"+uniqueid+"/"+begintime+"/"+endtime,
	    dataType:"json",   //返回格式为json
	    async:false,//请求是否异步，默认为异步，这也是ajax重要特性
	    data:{},    //参数值
	    type:"GET",   //请求方式
	    success:function(result){
	    	data=result;
			//console.log(result);
	    },
	    error:function(){
	        //请求出错处理
	    }
	});
	
	
	
	
	var yAxis_data=[];
	var begintime_data=[];
	var endtime_data=[];
	for(i=0;i<data.length;i++){
		yAxis_data.push(data[i].whichModel+"-->"+data[i].productName);
		begintime_data.push(new Date(data[i].planBeginTime));
		endtime_data.push(new Date(data[i].planFinishTime));
	}
	
	var myChart = echarts.init(document.getElementById('div1'));
	option = {
	    title: {
	    	x:'center',
	        text: '个人计划生产甘特图'
	    },
	    legend: {
	        data: ['过期时间']
	    },
	    xAxis: {
	        type: 'time'
	    },
	    yAxis: {
	        data: yAxis_data
	    },
	    grid: {
	        left: '3%',
	        right: '4%',
	        bottom: '10%',
	        containLabel: true
	    },
	    tooltip: {
	        trigger: 'axis',
	        formatter: function(params) {
	             var res=params[0].name+"</br>"
	               var date0=params[0].data;
	               var date1=params[1].data;
	               //console.log(params[0])
	                date0=date0.getFullYear()+"-"+(date0.getMonth()+1)+"-"+date0.getDate();
	               date1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate();
	    		   res+=params[0].seriesName+":"+date0+"</br>"
	    		   res+=params[1].seriesName+":"+date1+"</br>"
	            return res;
	        }
	    },
	    dataZoom: [{
	        type: 'slider',
	        top: 'bottom'
	    }],
	    series: [
	
	        {
	            name: '开始时间',
	            type: 'bar',
	            stack: '总量',
	            itemStyle: {
	                normal: {
	                    color: 'rgba(0,0,0,0)'
	                }
	            },
	            data: begintime_data
	        },{
	            name: '结束时间',
	            type: 'bar',
	            stack: '总量',
	            itemStyle: {
	                normal: {
	                    color: '#52b4f7',
	                    barBorderRadius: 10,
	                    shadowColor: 'rgba(0, 0, 0, 0.3)',
	                    shadowBlur: 20
	                }
	            },
	            data: endtime_data
	        }
	    ]
	};
	// 为echarts对象加载数据 
	myChart.setOption(option);
		
}
function echarts2(uniqueid)
{//个人任务趋势图
	
	var data=[
		{"task_time":"2017/10/01","plan_task_count":"5","plan_output_count":"20","plan_hour":"1"},
		{"task_time":"2017/10/03","plan_task_count":"8","plan_output_count":"40","plan_hour":"12"},
		{"task_time":"2017/10/05","plan_task_count":"2","plan_output_count":"15","plan_hour":"23"},
		{"task_time":"2017/10/10","plan_task_count":"1","plan_output_count":"23","plan_hour":"13"},
		{"task_time":"2017/10/14","plan_task_count":"10","plan_output_count":"23","plan_hour":"32"},
		{"task_time":"2017/10/17","plan_task_count":"6","plan_output_count":"11","plan_hour":"4"},
		{"task_time":"2017/10/18","plan_task_count":"8","plan_output_count":"41","plan_hour":"23"}
	];
	
	var begintime= $("#begintime").val();
	if(""==begintime){
		begintime="1900-01-01";
	}
	var endtime= $("#endtime").val();
	if(""==endtime){
		var d= new Date()
		var day=d.getDate()
		var month=d.getMonth() + 1
		var year=d.getFullYear()
		endtime=year+'-'+month+'-'+day;
	}
	
	$.ajax({
		url:host+"users/analysis/getTasksTend/"+uniqueid+"/"+begintime+"/"+endtime,
	    dataType:"json",   //返回格式为json
	    async:false,//请求是否异步，默认为异步，这也是ajax重要特性
	    data:{},    //参数值
	    type:"GET",   //请求方式
	    success:function(result){
	    	data=result;
			//console.log(result);
	    },
	    error:function(){
	        //请求出错处理
	    }
	});
	
	
	var xAxis_data=[];
	var plan_task_count=[];
	var plan_output_count=[];
	var plan_hour=[];
	
	for(i=0;i<data.length;i++){
		xAxis_data.push(data[i].planBeginTime);
		plan_task_count.push(data[i].planTaskCount);
		plan_output_count.push(data[i].planOutputCount);
		plan_hour.push(data[i].planHour);
	}
	
	
	var myChart = echarts.init(document.getElementById('div2'));
	option = {
	    title : {
	        text: '个人任务趋势图',
	        x:'center',
	    },
	    tooltip : {
	        trigger: 'axis'
	    },
	    legend: {
	        data:['计划任务数','计划产量','额定工时'],
	        x: 'right',
			selectedMode: 'single',
		    inactiveColor: '#999'
	    },
	    calculable : true,
	    xAxis : [
	        {
	            type : 'category',
	            boundaryGap : false,
	            data : xAxis_data
	        }
	    ],
	    yAxis : [
	        {
	            type : 'value'
	        }
	    ],
	    series : [
	        {
	            name:'计划任务数',
	            type:'line',
	            data:plan_task_count
	        },
	        {
	            name:'计划产量',
	            type:'line',
	            data:plan_output_count
	        },
	        {
	            name:'额定工时',
	            type:'line',
	            data:plan_hour
	        }
	    ]
	};
	myChart.setOption(option);
}
function echarts3(uniqueid)
{//实际生产图
	
	var data=[
		{"product_name":'XX-1>天线',"begintime":"2017/10/18","endtime":"2017/11/28"},
		{"product_name":'XX-1>电源件',"begintime":"2017/10/15","endtime":"2017/11/20"},
		{"product_name":'XX-1>发动机',"begintime":"2017/10/13","endtime":"2017/11/10"},
		{"product_name":'XX-2>天线',"begintime":"2017/10/11","endtime":"2017/11/24"},
		{"product_name":'XX-2>电源件',"begintime":"2017/10/16","endtime":"2017/11/05"},
		{"product_name":'XX-2>发动机',"begintime":"2017/10/04","endtime":"2017/11/06"}
	];
	
	var begintime= $("#begintime").val();
	if(""==begintime){
		begintime="1900-01-01";
	}
	var endtime= $("#endtime").val();
	if(""==endtime){
		var d= new Date()
		var day=d.getDate()
		var month=d.getMonth() + 1
		var year=d.getFullYear()
		endtime=year+'-'+month+'-'+day;
	}
	
	$.ajax({
		url:host+"users/analysis/getRealProduce/"+uniqueid+"/"+begintime+"/"+endtime,
	    dataType:"json",   //返回格式为json
	    async:false,//请求是否异步，默认为异步，这也是ajax重要特性
	    data:{},    //参数值
	    type:"GET",   //请求方式
	    success:function(result){
	    	data=result;
			//console.log(result);
	    },
	    error:function(){
	        //请求出错处理
	    }
	});
	
	
	var yAxis_data=[];
	var begintime_data=[];
	var endtime_data=[];
	for(i=0;i<data.length;i++){
		yAxis_data.push(data[i].whichModel+"-->"+data[i].productName);
		begintime_data.push(new Date(data[i].realBeginTime));
		endtime_data.push(new Date(data[i].realFinishTime));
	}
	
	
	var myChart = echarts.init(document.getElementById('div3'));
			option = {
			    title: {
			    	x:'center',
			        text: '个人实际生产甘特图'
			    },
			    legend: {
			        data: ['过期时间']
			    },
			    xAxis: {
			        type: 'time'
			    },
			
			    yAxis: {
			        data: yAxis_data
			    },
			    grid: {
			        left: '3%',
			        right: '4%',
			        bottom: '10%',
			        containLabel: true
			    },
			    tooltip: {
			        trigger: 'axis',
			        formatter: function(params) {
			             var res=params[0].name+"</br>"
			               var date0=params[0].data;
			               var date1=params[1].data;
			               //console.log(params[0])
			                date0=date0.getFullYear()+"-"+(date0.getMonth()+1)+"-"+date0.getDate();
			               date1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate();
			    		   res+=params[0].seriesName+":"+date0+"</br>"
			    		   res+=params[1].seriesName+":"+date1+"</br>"
			            return res;
			        }
			    },
			    dataZoom: [{
			        type: 'slider',
			        top: 'bottom'
			    }],
			    series: [
			
			        {
			            name: '开始时间',
			            type: 'bar',
			            stack: '总量',
			            itemStyle: {
			                normal: {
			                    color: 'rgba(0,0,0,0)'
			                }
			            },
			            data: begintime_data
			        },{
			            name: '结束时间',
			            type: 'bar',
			            stack: '总量',
			            itemStyle: {
			                normal: {
			                    color: '#52b4f7',
			                    barBorderRadius: 10,
			                    shadowColor: 'rgba(0, 0, 0, 0.3)',
			                    shadowBlur: 20
			                }
			            },
			            data: endtime_data
			        }
			    ]
			};
			// 为echarts对象加载数据 
			myChart.setOption(option);
}
function echarts4(uniqueid)
{
	
	var data=[
		{"task_time":"2017/10/01","plan_task_count":"5","plan_output_count":"20","plan_hour":"1"},
		{"task_time":"2017/10/03","plan_task_count":"8","plan_output_count":"40","plan_hour":"12"},
		{"task_time":"2017/10/05","plan_task_count":"2","plan_output_count":"15","plan_hour":"23"},
		{"task_time":"2017/10/10","plan_task_count":"1","plan_output_count":"23","plan_hour":"13"},
		{"task_time":"2017/10/14","plan_task_count":"10","plan_output_count":"23","plan_hour":"32"},
		{"task_time":"2017/10/17","plan_task_count":"6","plan_output_count":"11","plan_hour":"4"},
		{"task_time":"2017/10/18","plan_task_count":"8","plan_output_count":"41","plan_hour":"23"}
	]
	
	var begintime= $("#begintime").val();
	if(""==begintime){
		begintime="1900-01-01";
	}
	var endtime= $("#endtime").val();
	if(""==endtime){
		var d= new Date()
		var day=d.getDate()
		var month=d.getMonth() + 1
		var year=d.getFullYear()
		endtime=year+'-'+month+'-'+day;
	}
	
	$.ajax({
		url:host+"users/analysis/getRealTasksTend/"+uniqueid+"/"+begintime+"/"+endtime,
	    dataType:"json",   //返回格式为json
	    async:false,//请求是否异步，默认为异步，这也是ajax重要特性
	    data:{},    //参数值
	    type:"GET",   //请求方式
	    success:function(result){
	    	data=result;
			//console.log(result);
	    },
	    error:function(){
	        //请求出错处理
	    }
	});
	
	
	var xAxis_data=[];
	var plan_task_count=[];
	var plan_output_count=[];
	var plan_hour=[];
	
	for(i=0;i<data.length;i++){
		xAxis_data.push(data[i].realFinishTime);
		plan_task_count.push(data[i].realTaskCount);
		plan_output_count.push(data[i].realOutputCount);
		plan_hour.push(data[i].realHour);
	}
	
	
	
	
	var myChart = echarts.init(document.getElementById('div4'));
	option = {
	    title : {
	        text: '个人实际质量及工时趋势图',
	        x:'center',
	    },
	    tooltip : {
	        trigger: 'axis'
	    },
	    legend: {
	        data:['计划任务数','计划产量','额定工时'],
	         x: 'right',
			 selectedMode: 'single'  ,
		     inactiveColor: '#999' 
	    },
	    calculable : true,
	    xAxis : [
	        {
	            type : 'category',
	            boundaryGap : false,
	            data : xAxis_data
	        }
	    ],
	    yAxis : [
	        {
	            type : 'value'
	        }
	    ],
	    series : [
	        {
	            name:'计划任务数',
	            type:'line',
	            data:plan_task_count
	        },
	        {
	            name:'计划产量',
	            type:'line',
	            data:plan_output_count
	        },
	        {
	            name:'额定工时',
	            type:'line',
	            data:plan_hour
	        }
	    ]
	};
	myChart.setOption(option);
}
function echarts5(uniqueid)
{//送检汇总情况
	
	var data=[
		{"task_time":"2017/10/01","detected_data":"5"},
		{"task_time":"2017/10/03","detected_data":"8"},
		{"task_time":"2017/10/05","detected_data":"2"},
		{"task_time":"2017/10/10","detected_data":"1"},
		{"task_time":"2017/10/14","detected_data":"10"},
		{"task_time":"2017/10/17","detected_data":"6"},
		{"task_time":"2017/10/18","detected_data":"8"}
	]
	
	var begintime= $("#begintime").val();
	if(""==begintime){
		begintime="1900-01-01";
	}
	var endtime= $("#endtime").val();
	if(""==endtime){
		var d= new Date()
		var day=d.getDate()
		var month=d.getMonth() + 1
		var year=d.getFullYear()
		endtime=year+'-'+month+'-'+day;
	}
	
	$.ajax({
		url:host+"users/analysis/getOutPutTotal/"+uniqueid+"/"+begintime+"/"+endtime,
	    dataType:"json",   //返回格式为json
	    async:false,//请求是否异步，默认为异步，这也是ajax重要特性
	    data:{},    //参数值
	    type:"GET",   //请求方式
	    success:function(result){
	    	data=result;
			//console.log(result);
	    },
	    error:function(){
	        //请求出错处理
	    }
	});
	
	
	var xAxis_data=[];
	var detected_data=[];
	
	for(i=0;i<data.length;i++){
		xAxis_data.push(new Date().setTime(data[i].finishTime * 1000));
		detected_data.push(data[i].inspectionCount);
	}
	
	var myChart=echarts.init(document.getElementById('div5'));
	option = {
		 title : {
	        text: '送检汇总情况',
	        x:'center',
	    },
	    color: ['#3398DB'],
	    tooltip : {
	        trigger: 'axis',
	        axisPointer : {            // 坐标轴指示器，坐标轴触发有效
	            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
	        }
	    },
	    grid: {
	        left: '3%',
	        right: '4%',
	        bottom: '3%',
	        containLabel: true
	    },
	    xAxis : [
	        {
	            type : 'category',
	            data : xAxis_data,
	            axisTick: {
	                alignWithLabel: true
	            }
	        }
	    ],
	    yAxis : [
	        {
	            type : 'value'
	        }
	    ],
	    series : [
	        {
	            name:'送检数量',
	            type:'bar',
	            barWidth: '60%',
	            data:detected_data
	        }
	    ]
	};
	myChart.setOption(option);
}
 
function echarts6(uniqueid)
{//送检质量情况趋势图
	
	var data=[
		{"task_time":"2017/10/01","return_count":"5","bad_count":"6","out_detected_count":"6","unpassed_count":"4"},
		{"task_time":"2017/10/03","return_count":"1","bad_count":"11","out_detected_count":"7","unpassed_count":"12"},
		{"task_time":"2017/10/05","return_count":"6","bad_count":"14","out_detected_count":"5","unpassed_count":"5"},
		{"task_time":"2017/10/10","return_count":"10","bad_count":"3","out_detected_count":"5","unpassed_count":"14"},
		{"task_time":"2017/10/14","return_count":"4","bad_count":"14","out_detected_count":"6","unpassed_count":"17"},
		{"task_time":"2017/10/17","return_count":"8","bad_count":"13","out_detected_count":"5","unpassed_count":"9"},
		{"task_time":"2017/10/18","return_count":"11","bad_count":"15","out_detected_count":"10","unpassed_count":"6"}
	]
	
	var begintime= $("#begintime").val();
	if(""==begintime){
		begintime="1900-01-01";
	}
	var endtime= $("#endtime").val();
	if(""==endtime){
		var d= new Date()
		var day=d.getDate()
		var month=d.getMonth() + 1
		var year=d.getFullYear()
		endtime=year+'-'+month+'-'+day;
	}
	
	$.ajax({
		url:host+"users/analysis/getOutPutTotal/"+uniqueid+"/"+begintime+"/"+endtime,
	    dataType:"json",   //返回格式为json
	    async:false,//请求是否异步，默认为异步，这也是ajax重要特性
	    data:{},    //参数值
	    type:"GET",   //请求方式
	    success:function(result){
	    	data=result;
			//console.log(result);
	    },
	    error:function(){
	        //请求出错处理
	    }
	});
	
	var xAxis_data=[];
	var return_count=[];
	var bad_count=[];
	var out_detected_count=[];
	var unpassed_count=[];
	
	for(i=0;i<data.length;i++){
		xAxis_data.push(data[i].startTime);
		return_count.push(data[i].repairCount);
		bad_count.push(data[i].badCount);
		out_detected_count.push(data[i].inspectionCount);
		unpassed_count.push(data[i].unpassedCount);
	}
	
	var myChart=echarts.init(document.getElementById('div6'));
	option = {
	    title : {
	        text: '送检质量情况趋势图',
	         x:'center',
	    },
	    tooltip : {
	        trigger: 'axis'
	    },
	    legend: {
	        data:['返修数','废品数','送检数','不合格数'],
	        x: 'right',
	
	    },
	    calculable : true,
	    xAxis : [
	        {
	            type : 'category',
	            boundaryGap : false,
	            data : xAxis_data
	        }
	    ],
	    yAxis : [
	        {
	            type : 'value'
	        }
	    ],
	    grid: {
	        left: '3%',
	        right: '4%',
	        bottom: '20%',
	        containLabel: true
	    },
	    series : [
	        {
	            name:'返修数',
	            type:'line',
	            data:return_count
	        },
	        {
	            name:'废品数',
	            type:'line',
	            data:bad_count
	        },
	        {
	            name:'送检数',
	            type:'line',
	            data:out_detected_count
	        },
	        {
	            name:'不合格数',
	            type:'line',
	            data:unpassed_count
	        },
	    ]
	};
	myChart.setOption(option);
}
function echarts7()
{//分类原因占比
	
	
	var data=[
		{"name":"电源","value":"26"},
		{"name":"通信","value":"16"},
		{"name":"散热","value":"50"},
		{"name":"载荷","value":"20"}
	]
	
	
	
	
	var myChart=echarts.init(document.getElementById('div7'));
	option = {
	    title : {
	        text: '分类原因占比',
	        x:'center'
	    },
	    tooltip : {
	        trigger: 'item',
	        formatter: "{a} <br/>{b} : {c} ({d}%)"
	    },
	    legend: {
	        orient: 'vertical',
	        left: 'left',
	        //data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
	    },

	    series : [
	        {
	            name: '分类原因',
	            type: 'pie',
	            radius : '50%',
	            center: ['50%', '60%'],
	            data:data,
	            itemStyle: {
	                emphasis: {
	                    shadowBlur: 10,
	                    shadowOffsetX: 0,
	                    shadowColor: 'rgba(0, 0, 0, 0.5)'
	                }
	            },
	            labelLine: {
					normal: {
						show: false,
					}
				},
	        }
	    ]
	};
	myChart.setOption(option);
}
function echarts8()
{
	
	var data=[
		{"name":"加工失误","value":"20"},
		{"name":"物料替换","value":"15"},
		{"name":"更换工人","value":"20"},
		{"name":"检测不当","value":"16"},
		{"name":"设计问题","value":"9"}
	]
	
	var myChart=echarts.init(document.getElementById('div8'));
	option = {
	    title : {
	        text: '产品分类占比',
	        x:'center'
	    },
	    tooltip : {
	        trigger: 'item',
	        formatter: "{a} <br/>{b} : {c} ({d}%)"
	    },
	    legend: {
	        orient: 'vertical',
	        left: 'left',
	        //data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
	    },
	    series : [
	        {
	            name: 'xxx',
	            type: 'pie',
	            radius : '50%',
	            center: ['50%', '60%'],
	            data:data,
	            itemStyle: {
	                emphasis: {
	                    shadowBlur: 10,
	                    shadowOffsetX: 0,
	                    shadowColor: 'rgba(0, 0, 0, 0.5)'
	                }
	            },
	            labelLine: {
					normal: {
						show: false,
					}
				},
	        }
	    ]
	};
	myChart.setOption(option);
}
function echarts9()
{
	
	var data=[
		{"name":"设计","value":"26"},
		{"name":"物料","value":"16"},
		{"name":"加工","value":"50"},
		{"name":"工艺","value":"20"},
		{"name":"工序","value":"14"}
	]
	var myChart=echarts.init(document.getElementById('div9'));
	option = {
	    title : {
	        text: '责任分类占比',
	        x:'center'
	    },
	    tooltip : {
	        trigger: 'item',
	        formatter: "{a} <br/>{b} : {c} ({d}%)"
	    },
	    legend: {
	        orient: 'vertical',
	        left: 'left',
	        //data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
	    },
	    series : [
	        {
	            name: 'xxx',
	            type: 'pie',
	            radius : '50%',
	            center: ['50%', '60%'],
	            data:data,
	            itemStyle: {
	                emphasis: {
	                    shadowBlur: 10,
	                    shadowOffsetX: 0,
	                    shadowColor: 'rgba(0, 0, 0, 0.5)'
	                }
	            },
	            labelLine: {
					normal: {
						show: false,
					}
				},
	        }
	    ]
	};
	myChart.setOption(option);
}

function echarts10()
 {
	
	var data=[
		{"task_time":"2017/10/01","return_count":"5","bad_count":"6","out_detected_count":"6","unpassed_count":"4"},
		{"task_time":"2017/10/03","return_count":"1","bad_count":"11","out_detected_count":"7","unpassed_count":"12"},
		{"task_time":"2017/10/05","return_count":"6","bad_count":"14","out_detected_count":"5","unpassed_count":"5"},
		{"task_time":"2017/10/10","return_count":"10","bad_count":"3","out_detected_count":"5","unpassed_count":"14"},
		{"task_time":"2017/10/14","return_count":"4","bad_count":"14","out_detected_count":"6","unpassed_count":"17"},
		{"task_time":"2017/10/17","return_count":"8","bad_count":"13","out_detected_count":"5","unpassed_count":"9"},
		{"task_time":"2017/10/18","return_count":"11","bad_count":"15","out_detected_count":"10","unpassed_count":"6"}
	]
	
	var xAxis_data=[];
	var return_count=[];
	var bad_count=[];
	var out_detected_count=[];
	var unpassed_count=[];
	
	for(i=0;i<data.length;i++){
		xAxis_data.push(data[i].task_time);
		return_count.push(data[i].return_count);
		unpassed_count.push(data[i].unpassed_count);
	}
	
 	var myChart=echarts.init(document.getElementById('div10'));
	option = {
      title : {
          text: '质量问题趋势图',
           x:'center',
      },
	    tooltip : {
	        trigger: 'axis'
	    },
	    legend: {
	        data:['技术问题数量','不合格数'],
	        x: 'right',
	
	    },
	    calculable : true,
	    xAxis : [
	        {
	            type : 'category',
	            boundaryGap : false,
	            data : xAxis_data
	        }
	    ],
	    yAxis : [
	        {
	            type : 'value'
	        }
	    ],
	    grid: {
	        left: '3%',
	        right: '4%',
	        bottom: '20%',
	        containLabel: true
	    },
	    series : [
	        {
	            name:'技术问题数量',
	            type:'line',
	            data:return_count
	        },
	        {
	            name:'不合格数',
	            type:'line',
	            data:unpassed_count
	        }
	    ]
	};
	myChart.setOption(option);
 }




